package com.cater.sys.dao;



import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cater.common.BaseQuery;
import com.cater.sys.entity.Role;

@Repository
public interface RoleDao extends BaseDao<Role, Integer,BaseQuery> {
	
	Role getByName(@Param("username") String loginName);
	
	void saveRR(@Param("roleId") Integer roleId, @Param("resourceId") Integer resourceId);
	
	void removeRR(@Param("roleId") Integer roleId);
	
	void deletestate(Role role);
	
	List<Role> getByUserId(@Param("userId") Integer userId);
}
